package com.peace.hospital.feign.drugstorage.service;

import com.peace.hospital.entity.common.Druginformation;
import com.peace.hospital.entity.drugstorage.*;
import com.peace.hospital.entity.drugstorage.dto.ModpriceDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient("drugstorage")
public interface IDrugStorageService {

    //添加药品信息
    @PostMapping("/drugStorageController/addDrugInfo")
    public String addDrugInfo(@RequestBody Druginformation din);

    //查询药品信息
    @GetMapping("/drugStorageController/findDrugInfo")
    String findDrugInfo(@RequestBody Druginformation din);

    //修改药品信息
    @PostMapping("/drugStorageController/alterDrugInfo")
    public String alterDrugInfo(@RequestBody Druginformation din) ;

    //添加入库单
    @PostMapping("/drugStorageController/addWaeInfo")
    public String addWaeInfo(DruginfoAndAnyDto druginfoAndAnyDto);

    @PostMapping("/drugStorageController/addOutWInfo")
    public String addOutWInfo(DruginfoAndAnyDto druginfoAndAnyDto);
    // 查询入库单
    @GetMapping("/drugStorageController/findWaentry")
    public String findWaentry(@RequestBody Waentry waentry);

    //查询入库的药品
    @GetMapping("/drugStorageController/findDrugByWaeId")
    public String findDrugByWaeId(@RequestBody Waentry waentry);

    // 插入报损单 和报损药品信息
    @PostMapping("/drugStorageController/addDamage")
    public String addDamage(DruginfoAndAnyDto druginfoAndAnyDto);

    //查询报损单
    @GetMapping("/drugStorageController/findFrmByfrmid")
    public String findFrmByFrmid(@RequestBody Frmloss frmloss);

    //查询报损药品
    @GetMapping("/drugStorageController/findDamageByFrmid")
    public String findDamageByFrmid(@RequestBody Damagedrug damagedrug);

    @GetMapping("/drugStorageController/test")
    public String test();

    //    添加出库信息
//    @PostMapping("addOutWInfo")
//
//    public String addOutWInfo(DruginfoAndAnyDto druginfoAndAnyDto, Outwarehouse outwarehouse);

    //    查找出库单信息
    @GetMapping("/drugStorageController/findOutWa")
    public String findOutWa(@RequestBody Outwarehouse outwarehouse);

    //    出库单id查询出库药品
    @GetMapping("/drugStorageController/findOutDByOutid")
    public String findOutDByOutid(@RequestBody Outdrug outdrug);










    //添加调价信息
    @RequestMapping(value = "/modprices/insert", method = {RequestMethod.POST})
    String InsertModprice(@RequestBody ModpriceDto modpriceDto);

    //查询调价信息
    @RequestMapping(value = "/modprices/select", method = {RequestMethod.GET})
    String  selectModprice(@RequestBody Integer drugid);
}
